{*include file="template/admin_head.htm"*}
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="containtable" class="{*$cf_controller*}">
    <tr>
	<td valign="top" bgcolor="#FFFFFF">
	    <div class="wrapper">
		{*if $cf_action=='add' || $cf_action=='edit'*}
		<script type="text/javascript">

		    $(function(){
				$("#act_form").submit(function(){
					var $channel_sn = $("#sn").val();
					

					if($("#channel_name").val()==''){
						my_alert('请输入渠道名称','Error',"$('#channel_name').focus()");
						return false;
					}
					if($channel_sn==''){
						my_alert('请输入渠道号','Error',"$('#sn').focus()");
						return false;
					}
					 var re=/^[0-9]{7}$/;
	    			 if(!re.test($channel_sn)){
						 my_alert('渠道号位数不对','Error',"$('#sn').focus()");
						 return false;
					 }

					if($("#channel_apk_url").val()=='' && $("#channel_code_img").val()==''){
						my_alert('请上传安装包或者二维码','Error',"$('#channel_version').focus()");
						return false;
					}		   
				});
				

				$("#sn").keyup(function(){
					var channel_sn = $("#sn").val();					
					var code ='{*$smarty.const.SITE_ADDR*}public/upload/apkimage/coship_'+channel_sn+'.png';									
					if(channel_sn){
						if(channel_sn == '0000000'){						//网官时,显示版本号
							$("#dis_version").show();
						}else{
							$("#dis_version").hide();
						}
						
						$("#apk_part").show();
						$("#code_part").show();	
						$("#code_img_part").show();						
					}else{
						$("#apk_part").hide();
						$("#code_part").hide();	
						$("#code_img_part").hide();	
					}
					
					$("#channel_code_url").val(code);
										
				});
				
				$("#channel_version").keyup(function(){
					var channel_sn = $("#sn").val();
					var channel_version = $("#channel_version").val();					
					if(channel_sn && channel_version){
						$("#apk_part").show();
						$("#code_part").show();	
						$("#code_img_part").show();						
					}else{
						//$("#upload_button").hide();
						//$("#apk_button").hide();
					}						
				});


                $("#create_code").click(function(){
                    var apk_url = $("#channel_apk_url").val();
                    if(apk_url==''){
                        my_alert('请先上传安装包','Error',"$('#channel_apk_url').focus()");
                        return false;
                    }
                    $.post("{*$cf_module_path*}/ajax.htm",
                        {act: "create_qrcode", value1: apk_url },
                            function(data){
                                $("#show").append(show_photo_div("#create_code","#channel_code_img",data))
                            }
                    );
                });



				
				//call_uploader('#apk_button','#channel_apk_url','apk',{'show':'#show2'});
				file_uploader('#channel_apk','#channel_apk_url','apk',"admin",'{*$cf_sessionid*}');
				{*if $row['channel_apk_url']*}
					$("#channel_apk_show").append(show_file_div("#channel_apk","#channel_apk_url","{*$row['channel_apk_url']*}"));
				{*/if*}
				
				call_uploader('#upload_button','#channel_code_img','apkimage',{'show':'#show'});	
				{*if $row['channel_code_img']*}
					$("#show").append(show_photo_div("#upload_button","#channel_code_img","{*$row['channel_code_img']*}",'admin',false));
				{*/if*}
				//call_uploader('#images','#channel_apk_url','apkimage',{'manage':true,'show':'#show'});	
				
				
					
		    })
		</script>
		<div class="sbox">
		    <form action="{*$form_action*}" method="post" enctype="multipart/form-data" name="act_form" id="act_form">
			<input id="sessionid" type="hidden" value="{*$cf_sessionid*}" />
			<input name="id" id="id" type="hidden" value="{*$row['channel_id']*}" />
            <input name="channel_apply_id" id="channel_apply_id" type="hidden" value="{*$row['channel_apply_id']|default:$smarty['get'].aid*}" />
            <input name="channel_user_id" id="channel_user_id" type="hidden" value="{*$row['channel_user_id']*}" />
			<input name="act" id="act" type="hidden" value="{*$cf_action*}" />           
			<input name="dpt" id="dpt" type="hidden" value="{*$cf_dpt*}" />         			
		  <div class="content_panel_title">
			    <div class="contentpanelleft"></div>
			    <div class="contentpanelcenter">
				<span class="contentpanelcenter_font">新增/修改渠道</span>
				<span><a class="edit at" href="{*$cf_self_page*}?dpt={*$cf_dpt*}">渠道管理</a></span>
			    </div>
			    <div class="contentpanelrihgt"></div>
			</div>
			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tbl tbl_nbr">
			    <tbody>
				<tr>
				    <td width="15%" align="right" class="ltd"><span class="red">*</span>渠道名称:</td>
				    <td width="85%" align="left"><input name="channel_name" type="text" id="channel_name" value="{*$row['channel_name']*}" size="40" maxlength="150" /></td>
				</tr>               
                <tr>
                  <td align="right" class="ltd"><span class="red">*</span>渠道号:</td>
                  <td align="left"><input name="channel_sn" type="text" id="sn" value="{*$row['channel_sn']*}" size="40" maxlength="7" />
                    (如:0000000)</td>
                </tr>
                {*assign var=channel_sn value=$row['channel_sn']*}
                {*if $cf_action=='add'*}               
                <tr id="dis_version" style="display:none" >
                  <td align="right" class="ltd"><span class="red">*</span>版本号:</td>
                  <td align="left"><input name="channel_version" type="text" id="channel_version" value="{*$row['channel_version']*}" size="40" maxlength="5" />
                  (如:8.5)</td>
                </tr>
                {*elseif $cf_action=='edit' && $channel_sn == '0000000' || $channel_sn == '0000001'*}
                 <tr>
                  <td align="right" class="ltd"><span class="red">*</span>内部版本号:</td>
                  <td align="left"><input name="channel_version" type="text" id="channel_version" value="{*$row['channel_version']*}" size="40" maxlength="5" />
                  (如:10.5)</td>
                </tr>
				<tr>
                  <td align="right" class="ltd"><span class="red">*</span>外部版本号:</td>
                  <td align="left"><input name="channel_real_version" type="text" id="channel_real_version" value="{*$row['channel_real_version']*}" size="40" maxlength="5" />
                  (如:1.0.5)</td>
                </tr>
				<tr>
                  <td align="right" class="ltd"><span class="red">*</span>更新内容:</td>
                  <td align="left"><textarea name="channel_update_info" cols="60" rows="5" id="channel_update_info">{*$row['channel_update_info']*}</textarea>
                  </td>
                </tr>
                {*/if*}
                <tr id="apk_part">
                  <td align="right" class="ltd">上传安装包:<br /><span class="red">(先填写渠道号)</span></td>
                  <td align="left">
				  <div id='channel_apk_show'></div>
				  <div id="channel_apk"></div><input type="hidden" name="channel_apk_url" id="channel_apk_url" value="{*$row['channel_apk_url']*}" />
                 <!-- <input type="text" name="channel_apk_url" id="channel_apk_url" value="{*$row['channel_apk_url']*} " size="40" maxlength="150"/> 
                  <input type="button" id="apk_button" value="选择文件" {*if $cf_action=='add'*} disabled="disabled" {*/if*} />
                  {*if $row['channel_apk_url']*}
                  <a href="{*$row['channel_apk_url']*}" target="_blank">下载安装包</a>
                  {*/if*}-->
                  </td>
                </tr>
                <tr id="code_part">
                  <td align="right" class="ltd">二维码(png):</td>
                  <td align="left">
                     <span id='show'>
                         <!-- <img style="cursor:pointer" id="upload_button" src="/public/images/admin/upload.jpg"  />-->
                     </span>
                      <input type="hidden" name="channel_code_img" id="channel_code_img" value="{*$row['channel_code_img']*}" />
                      <!--<input type="button" name="back" class="myinput" value="生成二维码" id='create_code' /></td>-->
                  </td>
                </tr>
                <tr id="code_img_part">
                  <td align="right" class="ltd">二维码地址:</td>
                  <td align="left"><input name="channel_code_url" type="text" id="channel_code_url" value="{*$row['channel_code_url']*}" size="100" maxlength="150" readonly="readonly" /></td>
                </tr>
                <tr>
				    <td width="15%" align="right" class="ltd">备注:</td>
				    <td width="85%" align="left"><input name="channel_sign" type="text" id="channel_sign" value="{*$row['channel_sign']*}" size="100" maxlength="150" /></td>
				</tr>
				<tr>
				    <td class="ltd" colspan="2" align="center"><input type="submit" name="Submit" class="myinput" value="提 交" />
					&nbsp;&nbsp;
					<input type="button" name="back" class="myinput" value="返 回" onclick="location.href='{*$cf_self_page*}?dpt={*$cf_dpt*}'" /></td>
				</tr>
			    </tbody>
			</table>
		    </form>
		</div>
		<br />
        
        {*elseif $cf_action=='data'*}
        <script type="text/javascript" src="/public/js/jquery/jquery.powerfloat.js"></script>
        <link rel="stylesheet" type="text/css" href="/public/js/jquery/css/jquery.powerfloat.css" />
        <script type="text/javascript">
            $(function(){
                $(".tips").powerFloat({ eventType: "hover",targetMode: "remind",targetAttr: "tips",position: "5-7"});
            });
        </script>

        	<div class="pannel">
		    <div class="pl"></div>
		    <div class="pr"></div>
		    <div class="pc">
			<form name="search_form" id="search_form" method="post" action="{*$cf_self_page*}">
            	<input name="act" id="act" type="hidden" value="data" />
                <input name="sn" id="sn" type="hidden" value="{*$sn*}" />
			    <input name="dpt" id="dpt" type="hidden" value="{*$cf_dpt*}" />                     
                <input name="type" id="type" type="hidden" value="{*$type*}" />
			    <div class="pt">用户名:
				  <input type="text" class="tet" name="skey" id="skey" size="15" value="{*$skey*}"/>
                  IMEI码:
				  <input type="text" class="tet" name="imei" id="imei" size="15" value="{*$imei*}"/>
				  &nbsp;首次注册时间：
				<input name="skey3" class="Wdate" type="text" id="act_start" value="{*$skey3*}" onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'act_end\')}',dateFmt:'yyyy-MM-dd',isShowClear:true,readOnly:true});" size="12" maxlength="30" />
                到<input name="skey4" class="Wdate" type="text" id="act_end" value="{*$skey4*}" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'act_start\')}',dateFmt:'yyyy-MM-dd',isShowClear:true,readOnly:true});" size="12" maxlength="30" />
                 &nbsp;
                首次使用时间：
				<input name="skey5" class="Wdate" type="text" id="act_start" value="{*$skey5*}" onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'act_end\')}',dateFmt:'yyyy-MM-dd',isShowClear:true,readOnly:true});" size="12" maxlength="30" />
                到<input name="skey6" class="Wdate" type="text" id="act_end" value="{*$skey6*}" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'act_start\')}',dateFmt:'yyyy-MM-dd',isShowClear:true,readOnly:true});" size="12" maxlength="30" />
                 &nbsp;最后打开时间：
				<input name="skey7" class="Wdate" type="text" id="act_start" value="{*$skey7*}" onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'act_end\')}',dateFmt:'yyyy-MM-dd',isShowClear:true,readOnly:true});" size="12" maxlength="30" />
                到<input name="skey8" class="Wdate" type="text" id="act_end" value="{*$skey8*}" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'act_start\')}',dateFmt:'yyyy-MM-dd',isShowClear:true,readOnly:true});" size="12" maxlength="30" />
                    &nbsp;
<input type="image" src="public/images/admin/icon_search_btn.gif" /></div>		
			</form>
		    </div>

		</div>



		<div class="content_panel_title">
                    <div class="contentpanelleft"></div>
                    <div class="contentpanelcenter">
                        <span class="contentpanelcenter_font">渠道 {*$row['channel_sn']*}-->用户列表</span>
					</div>
                    <div class="contentpanelrihgt"></div>
                </div>
              
                <div class="content_table_center_style">
                    <div class="p8">
			<form name="list_form" id="list_form" method="post" action="{*$cf_self_page*}">
			    <input name="act" type="hidden" value="all" />
			    <input name="dpt" id="dpt" type="hidden" value="{*$cf_dpt*}" />
			    <table width="100%" class="tbl tbl_nbr">
				<thead>
				    <tr class="thd">
                        <td width="3%" align="center" class="thr">ID</td>
                        <td width="7%" align="center" class="thr">IMEI码</td>
                        <td width="6%" align="center" class="thr"><span class="ltd">注册用户</span></td>
                        <td width="11%" align="center" class="thr">首次使用时间</td>
                        <td width="11%" align="center" class="thr">最后打开时间</td>
                        <td width="11%" align="center" class="thr">最后关闭时间</td>
                        <td width="11%" align="center" class="thr">首次注册时间</td>
                        <td width="6%" align="center" class="thr">使用次数</td>
                        <!--<td width="10%" align="center" class="thr">最后退出时间</td>-->                        </tr>
				</thead>
				<tbody>
				    {*foreach $data_ary as $item*}				    
				    <tr onmouseover="this.style.backgroundColor='#ffC'" onmouseout="this.style.backgroundColor='#ffF'">
					<td align="center">{*$item['imei_id']*}</td>
					<td align="left">{*$item['imei_code']*}</td>
					<td align="left"><a href="javascript:void(0)" title="用户信息" onclick="$(function(){my_iframe('{*$cf_module_path*}detail-act_user.htm?id={*$item['imei_uid']*}&dpt={*$cf_dpt*}','用户信息',700,500)})" class="edit" >{*$item['imei_user']*}</a></td>
					<td align="center">{*$item['imei_first_open']*}</td>
					<td align="center">{*$item['imei_last_open']*}</td>
					<td align="center">{*$item['imei_last_close']*}</td>
					<td align="center">{*$item['imei_reg_time']*}</td>
					<td align="center">{*$item['imei_login_count']*}</td>
					<!--<td align="center">{*$item['imei_back_time']*}</td>-->					</tr>
				    {*/foreach*}

				    <tr class="tft">
					<td colspan="8" style="padding:0;">
					    <table width="100%" border="0">
						<tr>
						    <td align="center" style="border:0;padding:0;"><div class="turnPage"><p>{*$page*}</p></div></td>
					      </tr>
					    </table>
					</td>
				    </tr>
				</table>
			</form>
		    </div>
                </div>
		<div class="content_main_bottom">
                    <div class="content_main_bottom_left"></div>
                    <div class="content_main_bottom_right"></div>
                </div>
            </div>
        
         {*elseif $cf_action=='apply'*}
        
        	<div class="pannel">
		    <div class="pl"></div>
		    <div class="pr"></div>
		    <div class="pc1">
			<form name="search_form" id="search_form" method="post" action="{*$cf_self_page*}">
            	<input name="act" id="act" type="hidden" value="data" />
			    <input name="dpt" id="dpt" type="hidden" value="{*$cf_dpt*}" />
                <input name="id" id="id" type="hidden" value="{*$channel_id*}" />
                <input name="type" id="type" type="hidden" value="{*$type*}" />
			    <div class="pt"><span class="ltd">用户</span>名:
				  <input type="text" class="tet" name="skey" id="skey" size="20" value="{*$skey*}"/>
				  &nbsp;&nbsp;申请时间:
				  <input name="skey3" class="Wdate" type="text" id="act_start" value="{*$skey3*}" onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'act_end\')}',dateFmt:'yyyy-MM-dd',isShowClear:true,readOnly:true});" size="20" maxlength="30" />
                到<input name="skey4" class="Wdate" type="text" id="act_end" value="{*$skey4*}" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'act_start\')}',dateFmt:'yyyy-MM-dd',isShowClear:true,readOnly:true});" size="20" maxlength="30" />
				&nbsp;&nbsp;状态:{*html_options name=stype id=stype options=$cf_info_var_common['channel_apply_status'] selected=$stype*}
				<input type="image" src="public/images/admin/icon_search_btn.gif" /></div>		
			</form>
		    </div>

		</div>



		<div class="content_panel_title">
                    <div class="contentpanelleft"></div>
                    <div class="contentpanelcenter">
                        <span class="contentpanelcenter_font"></span>
					</div>
                    <div class="contentpanelrihgt"></div>
                </div>
              
                <div class="content_table_center_style">
                    <div class="p8">
			<form name="list_form" id="list_form" method="post" action="{*$cf_self_page*}">
			    <input name="act" type="hidden" value="all" />
			    <input name="dpt" id="dpt" type="hidden" value="{*$cf_dpt*}" />
			    <table width="100%" class="tbl tbl_nbr">
				<thead>
				    <tr class="thd">
					<td align="center" class="thr">ID</td>
					<td align="center" class="thr">用户名</td>
					<td align="center" class="thr">联系人</td>
					<td align="center" class="thr">联系电话</td>
					<td align="center" class="thr">申请内容</td>
					<td align="center" class="thr">申请时间</td>
					<td align="center" class="thr">下载安装包</td>
					<td align="center" class="thr">下载二维码</td>
					<td colspan="3" align="center" class="thr">操作</td>
					</tr>
				</thead>
				<tbody>
				    {*foreach $data_ary as $item*}

				    {*assign var=sort value=$item['news_sort']*}				    
				    <tr onmouseover="this.style.backgroundColor='#ffC'" onmouseout="this.style.backgroundColor='#ffF'">
					<td align="center">{*$item['channel_id']*}</td>
					<td align="left">{*$item['channel_user_name']|truncate:60*}</td>
                    <td align="left">{*$item['channel_phone']*}</td>
					<td align="left">{*$item['imei']*}</td>
					<td align="center">{*$item['channel_create_time']*}</td>
					<td align="center">{*$item['open_time']*}</td>
					<td align="center">{*$item['last_time']*}</td>
					<td align="center">{*$item['register_time']*}</td>
					<td align="center">审核</td>
					<td align="center">添加</td>
					<td align="center">删除</td>
					</tr>
				    {*/foreach*}

				    <tr class="tft">
					<td colspan="12" style="padding:0;">
					    <table width="100%" border="0">
						<tr>
						    <td width="6%" align="center" style="border:0;padding:0;">&nbsp;</td>
						    <td width="22%" align="center" style="border:0;padding:0;">&nbsp;</td>
						    <td width="72%" style="border:0;padding:0;" ><div class="turnPage"><p>{*$page*}</p></div></td>
						</tr>
					    </table>
					</td>
				    </tr>
				</table>
			</form>
		    </div>
                </div>
		<div class="content_main_bottom">
                    <div class="content_main_bottom_left"></div>
                    <div class="content_main_bottom_right"></div>
                </div>
            </div>

		{*else*}	
<script type='text/javascript'>
    $(function(){
        $("#count_data").click(function(){
            var skey=$("#skey").val();
            var skey2=$("#skey2").val();
            var skey3=$("input[name=skey3]").val();
            var skey4=$("input[name=skey4]").val();
            var skey5=$("#skey5").val();
            var url = "/admin/channel-act_count.htm?dpt={*$cf_dpt*}&skey=" +skey +"&skey2=" + skey2 + "&skey3=" + skey3 + "&skey4=" +skey4+ "&skey5=" +skey5;
            //alert(url);
            my_iframe(url,'数据统计',400,200)

        });
    });
</script>
		<div class="pannel">
		    <div class="pl"></div>
		    <div class="pr"></div>
		    <div class="pc1">
			<form name="search_form" id="search_form" method="post" action="{*$cf_self_page*}">
			    <input name="dpt" id="dpt" type="hidden" value="{*$cf_dpt*}" />
			    <div class="pt">
                	渠道名称:
				  <input type="text" class="tet" name="skey" id="skey" size="15" value="{*$skey*}"/>
				  &nbsp;
                  渠道号:
				  <input type="text" class="tet" name="skey2" id="skey2" size="15" value="{*$skey2*}"/>
				  &nbsp;创建时间：
				<input name="skey3" class="Wdate" type="text" id="act_start" value="{*$skey3*}" onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'act_end\')}',dateFmt:'yyyy-MM-dd',isShowClear:true,readOnly:true});" size="15" maxlength="30" />
                到<input name="skey4" class="Wdate" type="text" id="act_end" value="{*$skey4*}" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'act_start\')}',dateFmt:'yyyy-MM-dd',isShowClear:true,readOnly:true});" size="15" maxlength="30" />
                    &nbsp; <input id='count_data' type="button" class="myinput" value="统计数据" />&nbsp;
                    <input type="image" src="public/images/admin/icon_search_btn.gif" />
				</div>
			</form>
		    </div>

		</div>



		<div class="content_panel_title">
                    <div class="contentpanelleft"></div>
                    <div class="contentpanelcenter">
                        <span class="contentpanelcenter_font">渠道管理</span>

                        <span><a class="edit at" href="{*$cf_self_path*}-act_add.htm?dpt={*$cf_dpt*}">添加渠道</a></span></div>
                    <div class="contentpanelrihgt"></div>
                </div>
                <!--<div class="tab-row" id="move_part1">
                <h2 id="" class="tab"><a href="javascript:void(0)">待办事宜</a></h2>
                <h2 id="" class="tab"><a href="javascript:void(0)">站内短信息</a></h2>
                <h2 id="" class="tab"><a href="javascript:void(0)">快捷标签</a></h2>
                <h2 id="" class="tab"><a href="javascript:void(0)">帮助信息</a></h2>
                <div class="tab-page" style="display: block;">aaa</div>
                <div class="tab-page" style="display: none;">bbbb</div>
                <div class="tab-page" style="display: none;">ccc</div>
                <div class="tab-page" style="display: none;">ddd</div>
                </div>-->
                <div class="content_table_center_style">
                    <div class="p8">
			<form name="list_form" id="list_form" method="post" action="{*$cf_self_page*}">
			    <input name="act" type="hidden" value="all" />
			    <input name="dpt" id="dpt" type="hidden" value="{*$cf_dpt*}" />
			    <table width="100%" class="tbl tbl_nbr">
				<thead>
				    <tr class="thd">
					<td width="6%" align="center" class="thr">ID</td>
					<td width="14%" align="center" class="thr">渠道名称</td>
					<td width="9%" align="center" class="thr">渠道号</td>                    
					<td width="11%" align="center" class="thr">安装数</td>
					
                    <td width="19%" align="center" class="thr">备注</td>
                    <td width="14%" align="center" class="thr">创建时间</td>
					<td colspan="2" align="center" class="thr">操作</td>
				    </tr>
				</thead>
				<tbody>
				    {*foreach $data_ary as $item*}

				    {*assign var=sort value=$item['news_sort']*}				    
				    <tr onmouseover="this.style.backgroundColor='#ffC'" onmouseout="this.style.backgroundColor='#ffF'">
					<td align="center">{*$item['channel_id']*}</td>
					<td align="left">            
                    {*$item['channel_name']|truncate:60*}
                    </td>
					<!--<td align="left">{*$item['channel_user_name']|truncate:60*}</td>-->
                        <td align="center">{*$item['channel_sn']*}</td>
					<td align="center"><a class="edit" href="{*$cf_self_path*}-act_data_sn_{*$item['channel_sn']*}.htm?dpt={*$cf_dpt*}&type=instatll">{*$item['install_count']*}</a></td>
                    
					<td align="left">{*$item['channel_sign']*}</td>
                    <td align="center">{*$item['channel_create_time']*}</td>
					<td width="6%" align="center"><a href="{*$cf_self_path*}-act_edit_id_{*$item['channel_id']*}.htm?dpt={*$cf_dpt*}" class="edit">修改</a></td>
					<td width="6%" align="center"><!--<a href="{*$cf_self_path*}-act_del_id_{*$item['channel_id']*}.htm" class="del" onclick="return confirm('你确定要删除吗?')">删除</a>--></td>
				    </tr>
				    {*/foreach*}

				    <tr class="tft">
					<td colspan="8" style="padding:0;">
					    <table width="100%" border="0">
						<tr>
						    <td width="6%" align="center" style="border:0;padding:0;">&nbsp;</td>
						    <td width="22%" align="center" style="border:0;padding:0;">&nbsp;</td>
						    <td width="72%" style="border:0;padding:0;" ><div class="turnPage"><p>{*$page*}</p></div></td>
						</tr>
					    </table>
					</td>
				    </tr>
				</table>
			</form>
		    </div>
                </div>
		<div class="content_main_bottom">
                    <div class="content_main_bottom_left"></div>
                    <div class="content_main_bottom_right"></div>
                </div>
            </div>
            <br />
            {*/if*}

	    </div>
	</td>
	</tr>
</table>
{*include file="template/admin_foot.htm"*}